<html>

<head>
    <script>
        console.log(parseFloat("123.45"));
        console.log(parseFloat("123.45asdas"));
        console.log(parseFloat("  123.45  "));
        console.log(parseFloat("sdas123.45"));

    </script>
</head>

<body>

</body>

</html>